<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/18
 * Time: 10:15
 * 图片URL
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class ImgRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/img',], function ($router) {
            $router->post('save', ['uses' => 'Api\ImgController@saveImg']);
            $router->post('get-img-url-by-md5', ['uses' => 'Api\ImgController@getImgUrlByMd5']);
            $router->post('get-img-urls-by-md5-arr-str', ['uses' => 'Api\ImgController@getImgUrlByMd5ArrStr']);
            $router->post('test', ['uses' => 'Api\ImgController@Test']);
            $router->get('test', ['uses' => 'Api\ImgController@getTest']);
        });
    }
}